package yxt.net.websocket.example.message;

import org.springframework.web.socket.WebSocketMessage;

/**
 * <p>
 * 响应消息体
 * </p>
 *
 * @author zhangxiaolin
 * @since 2022/1/26$ 13:26$
 */

public class ResponseMessage {
    private long timestamp;
    private String name;
    private String text;
    public ResponseMessage() {
    }
    public ResponseMessage(String name, String text) {
        this.timestamp = System.currentTimeMillis();
        this.name = name;
        this.text = text;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getName() {
        return name;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public String getText() {
        return text;
    }
}
